Skip to main content

Commit Transaction

AutomatR.PostgreSQL.CommitTransaction

The "Commit Transaction" activity in AutomatR is part of the PostgreSQL activities package, facilitating the commit of a transaction. This activity is typically used in conjunction with the "Start Transaction" activity to manage database transactions effectively.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Commit Transaction" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Commit Transaction" activity onto the workflow.
  2. Configure the optional delay if needed.
  3. Ensure that the "Commit Transaction" activity is placed within the scope of a "Start Transaction" activity.
  4. Execute the workflow to commit the ongoing transaction.

Example: Consider an example where the "Commit Transaction" activity is used to commit a transaction:

Commit Transaction:
Delay: 2

In this example, the activity commits the transaction with a 2-second delay. The commit operation finalizes the changes made within the transaction.